package org.example.mytest.entity;


import lombok.Data;
import org.example.mytest.emnu.Status;

import java.time.LocalDateTime;
import java.util.UUID;

@Data
public class Shouhoudan {

    private String id;
    private String customername;
    private String  shangpinname;
    private String  mendian;
    private float  goumaijine;
    private LocalDateTime time;
    private String  question;
    private  String phone;
    private Status status;
    public void init() {
        this.id = UUID.randomUUID().toString().replace("-", "");//创建唯一索引，用于在数组中查询的唯一标识，通过id去查询对应的表单信息
        this.status = Status.PENDING;
        this.time = LocalDateTime.now();
    }
    public String getId() { return id; }
    public String getCustomername() {return customername;}
    public String getShangpinname() { return shangpinname; }
    public void setShangpinname(String shangpinname) { this.shangpinname = shangpinname; }
    public LocalDateTime getTime() { return time; }
    public String getPhone() { return phone; }
    public void setStatus(Status status) {this.status=status;}
}

